package com.yunji.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDelFlagDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.order.domain
 * @Title: Request
 * @Description: 请求信息
 * History:
 * Date						Version			Author			Summary
 * ========================================================================
 * 2024-04-30 16:45:33		V1.0			HuaAo		新建类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_request")
public class RequestDO extends BaseDelFlagDO implements Serializable {
    private static final long serialVersionUID = 2096549542806679683L;

    @Excel(name = "请求ID", width = 15)
    @ApiModelProperty("请求ID")
    @TableId(type = IdType.AUTO)
    private Long requestId;

    @Excel(name = "交易流水号", width = 15)
    @ApiModelProperty("交易流水号")
    private String tradeCode;

    @Excel(name = "请求地址", width = 15)
    @ApiModelProperty("请求地址")
    private String requestUrl;

    @Excel(name = "渠道", readConverterExp = "1=微信,2=支付宝", width = 15)
    @ApiModelProperty("渠道(1:微信;2:支付宝;)")
    private Integer channel;

    @Excel(name = "请求类型", width = 15)
    @ApiModelProperty("请求类型")
    private Integer requestType;

    @Excel(name = "请求参数", width = 15)
    @ApiModelProperty("请求参数")
    private String requestParam;

    @Excel(name = "响应代码", width = 15)
    @ApiModelProperty("响应代码")
    private String responseCode;

    @Excel(name = "响应内容", width = 15)
    @ApiModelProperty("响应内容")
    private String responseContent;

    @Excel(name = "回调代码", width = 15)
    @ApiModelProperty("回调代码")
    private String callbackCode;

    @Excel(name = "回调内容", width = 15)
    @ApiModelProperty("回调内容")
    private String callbackContent;

    @Excel(name = "处理状态", readConverterExp = "0=请求失败,1=请求成功,2=回调成功", width = 15)
    @ApiModelProperty("处理状态(0:请求失败;1:请求成功;2:回调成功;)")
    private Integer status;
}